/*******************************************************************************
GFont.h

	Author:		LiuDingXi
	e-mail:		liudx@gmail.com
	Date time:	2009-08-26

	Copyright (C) 2009
	All rights reserved.
	
*******************************************************************************/

#ifndef _GFONT_H_
#define _GFONT_H_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class GFont
{
public:
	GFont();
	virtual ~GFont();

	bool	Create(LPCTSTR szFont, LONG lHeight, LONG lWeight, bool bItalic = false, bool bUnderline = false);
	bool	Destroy();
	
public:
#if (_OS_ == _OS_WINNT_)

	HFONT	m_hFont;
	LOGFONT	m_lFont;
	
#elif(_OS_ == _OS_SYMBIAN_)
	
	CFont*	m_pFont;

	TCHAR	m_szFont[32];
	LONG	m_lHeight;
	LONG	m_lWeight;
	bool	m_bItalic;
	bool	m_bUnderline;
	
#else
	
	void*	m_pFont;	
	
#endif
	
	
};


#endif//_GFONT_H_
